Skip to content

Conversation

phansch
Copy link
Contributor

@phansch phansch commented Oct 15, 2019

changelog: none

@tesuji
Copy link
Contributor

tesuji commented Oct 15, 2019

r? @Manishearth

@@ -255,7 +256,7 @@ fn simplify_not(cx: &LateContext<'_, '_>, expr: &Expr) -> Option<String> {
.iter()
.cloned()
.flat_map(|(a, b)| vec![(a, b), (b, a)])
.find(|&(a, _)| a == path.ident.name.as_str())
.find(|&(a, _)| Symbol::intern(a) == path.ident.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using sym! macro?

@Manishearth
Copy link
Member

I'd rather not dynamically intern symbols. Perhaps we should use the sym macro for must_use and use a cast like in #4673 for the other one?

@Manishearth
Copy link
Member

We can also land #4673 for now and improve it later

@phansch
Copy link
Contributor Author

phansch commented Oct 15, 2019

Let's land #4673 for now 👍

@phansch phansch closed this Oct 15, 2019
@phansch phansch deleted the clippyup branch October 15, 2019 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants